<link href="static/plugins/bootstarp-datepicker/css/bootstrap-datepicker3.min.css" rel="stylesheet">
<style>
    .row1{
        margin-top:10px;
    }
    label{
        text-align: center;
    }
</style>
<div id="studentGoManage">
    <form id="setting22222">
        <input type="hidden" name="id" value="{$admin.user_id}">
        <div class="row row1">
            <label class="col-sm-5 control-label">用户名：</label>
            <div class="col-sm-5">
                <input type="text" class="form-control" readonly name="user_username" value="{$admin.user_username}">
            </div>
        </div>
        <div class="row row1">
            <label class="col-sm-5 control-label">姓名：</label>
            <div class="col-sm-5">
                <input type="text" class="form-control" name="user_nickname" value="{$admin.user_nickname}">
            </div>
        </div>

    <div class="row row1">
        <label class="col-sm-5 control-label">电话：</label>
        <div class="col-sm-5">
            <input type="text" class="form-control" {if $admin.user_auth==1} readonly {/if} name="user_phone" value="{$admin.user_phone}">
        </div>
    </div>
        {if $admin.user_auth==2}
            <div class="row row1">
                <label class="col-sm-5 control-label">密码：</label>
                <div class="col-sm-5">
                    <input type="password" class="form-control" name="user_password" placeholder="为空则不修改">
                </div>
            </div>
        {/if}
        <!--<div class="row row1">-->
            <!--<label class="col-sm-5 control-label">头像</label>-->
            <!--<div class="col-sm-5">-->
                <!--<input onchange="aaaaa(this);" type="file" name="pic" />-->
                <!--<span style="color: gray;font-size: 12px;">不上传默认不修改</span>-->
                <!--</div>-->
        <!--</div>-->
        <!--<br/>-->
        <!--{if $admin.user_avatar==""}-->
        <!--<div id="androimg" style="text-align: center"><img src="static/img/userpic/avatar.jpg" height="150" /><br/>-->
            <!--<span style="color: gray;font-size: 13px">默认头像</span></div>-->
        <!--{else}-->
        <!--<div id="androimg" style="text-align: center"><img src="{$admin.user_avatar}" height="150" /></div>-->
        <!--{/if}-->
    </form>
</div>
<script>
    //function aaaaa(file) {
    //    var prevDiv = document.getElementById('androimg');
    //    if (file.files && file.files[0])
    //    {
    //        var reader = new FileReader();
    //        reader.onload = function(evt){
    //            prevDiv.innerHTML = '<img src="' + evt.target.result + '" height="150"/>';
    //        };
    //        reader.readAsDataURL(file.files[0]);
    //    }
    //    else
    //    {
    //        prevDiv.innerHTML = '<div class="img" style="filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=scale,src=\'' + file.value + '\'"></div>';
    //    }
    //}
</script>
